package com.rybbaby.tss.front.tssStatistics.service.imp;

import com.rybbaby.tss.core.bean.PageBean;
import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.front.tssStatistics.dao.IViewConsultancyStatisticsDao;
import com.rybbaby.tss.front.tssStatistics.entity.ViewConsultancyStatistics;
import com.rybbaby.tss.front.tssStatistics.service.IViewConsultancyStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;

/**
 * @description 员工表数据库操作服务实现
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:25:24
 */
@Service
@Transactional
public class ViewConsultancyStatisticsServiceImp extends BaseServiceImp<ViewConsultancyStatistics> implements IViewConsultancyStatisticsService {

    @Autowired
    private IViewConsultancyStatisticsDao dao;
    /**
     * 根据状态来修改员工信息
     *
     * @param targetDateId
     * @param isBlockUp
     * @return
     */
    @Override
    public Integer updateStaffByIsBlockUp(String targetDateId, Boolean isBlockUp) {
        return dao.updateStaffByIsBlockUp(targetDateId,isBlockUp);
    }

    @Override
    public PageBean pageList(HashMap<String, Object> paramHashMap, int pageNo, int pageSize) throws IllegalAccessException, InstantiationException {
        return dao.pageList(paramHashMap,pageNo,pageSize);
    }
}
